package com.wanjia.seal.manager.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wanjia.seal.manager.entity.OperatorUser;
import com.wanjia.seal.manager.mapper.OperatorUserMapper;
//import com.example.demo.service.OperatorUserService;
import com.wanjia.seal.manager.service.OperatorUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class OperatorUserServiceImpl implements OperatorUserService {
  @Autowired
    OperatorUserMapper operatorUserMapper;

    @Override
    public OperatorUser login(String OperatorID, String Password) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("Operatorid",OperatorID);
        wrapper.eq("Password",Password);
        OperatorUser operatorUser = operatorUserMapper.selectOne(wrapper);
        return operatorUser;
    }
    /*public OperatorUser getUser(String OperatorID,String Password) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("Operatorid",OperatorID);
        wrapper.eq("Password",Password);
        OperatorUser operatorUser = operatorUserMapper.selectOne(wrapper);
        return operatorUser;
    }*/
    /*public OperatorUser getUser(String OperatorID) {
        OperatorUser operatorUser = operatorUserMapper.selectById(OperatorID);
        return operatorUser;*/
   // }
}

